package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 页面资源对象 page_resource
 * 
 * @author ruoyi
 * @date 2025-03-30
 */
public class PageResource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 页面ID */
    @Excel(name = "页面ID")
    private Long pageId;

    /** 资源类型（image/text/link） */
    @Excel(name = "资源类型", readConverterExp = "i=mage/text/link")
    private String resourceType;

    /** 资源标识 */
    @Excel(name = "资源标识")
    private String resourceKey;

    /** 资源内容 */
    @Excel(name = "资源内容")
    private String resourceValue;

    /** 资源URL */
    @Excel(name = "资源URL")
    private String resourceUrl;

    /** 文件大小（字节） */
    @Excel(name = "文件大小", readConverterExp = "字=节")
    private Long fileSize;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPageId(Long pageId) 
    {
        this.pageId = pageId;
    }

    public Long getPageId() 
    {
        return pageId;
    }

    public void setResourceType(String resourceType) 
    {
        this.resourceType = resourceType;
    }

    public String getResourceType() 
    {
        return resourceType;
    }

    public void setResourceKey(String resourceKey) 
    {
        this.resourceKey = resourceKey;
    }

    public String getResourceKey() 
    {
        return resourceKey;
    }

    public void setResourceValue(String resourceValue) 
    {
        this.resourceValue = resourceValue;
    }

    public String getResourceValue() 
    {
        return resourceValue;
    }

    public void setResourceUrl(String resourceUrl) 
    {
        this.resourceUrl = resourceUrl;
    }

    public String getResourceUrl() 
    {
        return resourceUrl;
    }

    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }

    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pageId", getPageId())
            .append("resourceType", getResourceType())
            .append("resourceKey", getResourceKey())
            .append("resourceValue", getResourceValue())
            .append("resourceUrl", getResourceUrl())
            .append("fileSize", getFileSize())
            .append("fileType", getFileType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
